package com.zgjkhis.modules.system.domain.vo;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.zgjkhis.modules.system.domain.DrugWareHousing;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;
import java.util.List;

/**
 * @Author yzq
 * @Description 药品入库清单
 * @Date 2021/6/23 9:38
 * @Param
 * @return
 **/
@Data
public class DrugWareHousingVo extends DrugWareHousing {

    @ApiModelProperty(value = "入库清单详情")
    @Size(min=1,message = "清单详情不能为空")
    private List<DrugWareHousingDetailVO> list;
    @ApiModelProperty("门店名称")
    private String storeName;

    public void copy(DrugWareHousingVo source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
